package toanstt.com;

import android.app.Activity;
import android.content.Context;
import android.os.Bundle;
import android.os.Handler;
import android.view.MotionEvent;
import android.view.View;

public class DiamondLinkinActivity extends Activity
{
	 
	 private Handler mHandler;  
	 App app;
	 //Loading loading;
	 public static DiamondLinkinActivity activity;
	 public static Context context ;
    @Override
    public void onCreate(Bundle savedInstanceState) 
    {
    	//T.SCREEN=0;
    	 activity = this;
    	 super.onCreate(savedInstanceState);
    	context = getApplicationContext();
    	T.Init_loading(this);
    	//T.sound.Play(T.sound.GREET);
    	app = new App(context);
    	
        
        setContentView(app);
    }
    @Override
   	protected void onPause() 
       {
   		super.onPause();
   		
   			app.pause();
   	

   		
   	}
   	@Override
   	protected void onResume() 
   	{
   		super.onResume();
   			app.resume();
   		
   	}
   	@Override
	public boolean onTouchEvent(MotionEvent mo) 
	{
   		
   		app.touch(mo);
		int action = mo.getAction();
		switch(action)
		{
		case MotionEvent.ACTION_DOWN:
			
			
		break;
		
		case MotionEvent.ACTION_UP:
			
			
		break;
		case MotionEvent.ACTION_MOVE:
			
		break;

		}
		return true;
	}

	public boolean onTouch(View v, MotionEvent event) {
		// TODO Auto-generated method stub
		return false;
	}
}